<?php
class NoteExt extends Base{
    public static function readAllOrder($uid){
        myredis::set("noteOrder".$uid,0);
    }

    public static function readOneOrder($uid){
        myredis::decrement("noteOrder".$uid,1);
    }

    public static function unreadOneOrder($uid){
        myredis::increment("noteOrder".$uid,1);
    }

    public static function getOrderCount($uid){
        return intval(myredis::get("noteOrder".$uid));
    }


    public static function readPromotionNote($uid){
        myredis::set("notePromotion".$uid,0);
    }
    public static function unreadPromotionNote($uid){
        myredis::increment("notePromotion".$uid,1);
    }

    public static function getPromotionNote($uid){
        return intval(myredis::get("notePromotion".$uid));
    }


    public static function readRemarkNote($uid){
        myredis::set("noteRemark".$uid,0);
    }
    public static function unreadRemarkNote($uid,$count){
        if(!$count) $count = 1;
        myredis::set("noteRemark".$uid,$count);
    }

    public static function getRemarkNote($uid){
        return intval(myredis::get("noteRemark".$uid));
    }



}